<template>
  <div class="mysun">
    <div>
      孙组件--{{count}}----inject: {{num}}
    </div>
    <div>
      注入的对象，有么有响应式呢？ {{obj}}
    </div>
  </div>
</template>

<script>
export default {
  props: ['count'],
  inject: ['num', 'obj'],
  data() {
    return {}
  }
}
</script>

<style scoped>
.mysun {
  border: 3px solid rgb(110, 182, 3);
  padding: 15px;
}
</style>